using System.Web.Security;
using SportsStore.Domain.Abstract;

namespace SportsStore.Domain.Concrete
{
    public class FormsAuthProvider : IAuthProvider
    {
        public bool Authenticate(string username, string password)
        {
            var result = username=="admin"&&password=="123456";
            if (result)
            {
                FormsAuthentication.SetAuthCookie("username",false);

            }
            return result;
        }
    }
}